<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class JxtBanner extends Model
{
    const STATUS_SHOW = 1;//显示
    const STATUS_HIDE = 0;//隐藏

    protected function serializeDate(\DateTimeInterface $date): string
    {
        return $date->format('Y-m-d H:i:s');
    }

    static $status = [
        0 => '隐藏',
        1 => '显示'
    ];

    protected $guarded = [
        'id',
        'created_at',
        'updated_at'
    ];
}
